package com.zjh.common.util;

public class UserContext {
    public static final ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void setUser(Long id){
        tl.set(id);
    }

    public static Long getUser(){
        return tl.get();
    }

    public static void remove(){
        tl.remove();
    }
}
